<!--
 * @Author: chunlai
 * @Date: 2024-01-05 13:52:26
 * @LastEditTime: 2025-11-20 13:43:03
 * @LastEditors: minsheng_insurance_agency_zhoucl
 * @FilePath: \01.latest-short-insure\src\renewal\Common.vue
 * @Description: 公共主页
-->
<template>
  <div>
    <InsureInfos />
    <InsurePlanModule :insuData="mainRisk" />
  </div>
</template>

<script>
import { mapGetters } from "vuex";
import InsurePlanModule from "@/views/form/components/InsurePlanModule";
import InsureInfos from "@/views/sign/components/InsureInfos";
export default {
  name: "RenewalCommon",
  components: { InsureInfos, InsurePlanModule },
  data() {
    return {};
  },
  computed: {
    ...mapGetters({
      mainInsu: "risks/mainInsu",
    }),
    mainRisk() {
      let res = {};
      if (this.mainInsu && this.mainInsu.length > 0) {
        res = this.mainInsu[0];
      }
      return res;
    },
  },
  watch: {},
  created() {
    this.$store.dispatch("risks/setRisks", {});
  },
  mounted() {},
  methods: {},
};
</script>
<style lang="less" scoped></style>
